# Maintainer:
pkgname=fcitx5-anthy
pkgver=5.1.1
pkgrel=0
pkgdesc="anthy input method support for fcitx5"
url="https://github.com/fcitx/fcitx5-anthy"
# armhf: extra-cmake-modules
arch="all !armhf"
license="GPL-3.0-or-later"
makedepends="
	anthy-dev
	cmake
	extra-cmake-modules
	gettext-dev
	fcitx5-dev
	fcitx5-qt-dev
	qt5-qttools-dev
	samurai
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/fcitx/fcitx5-anthy/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	CXXFLAGS="$CXXFLAGS -flto=auto" \
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
cdf1db3f8b60d846b816026d0b2f68fca5fef5ab6e2bce38643593edfb90bf7ee91dc70499ec71337a36e42418bdc3f246d42428dfb695ffb1c95cf1450c3f67  fcitx5-anthy-5.1.1.tar.gz
"
